package com.ytjj.qmyx.mall.service;

import com.ytjj.common.api.CommonPage;
import com.ytjj.qmyx.mall.model.DynamicTopic;
import com.ytjj.qmyx.mall.model.request.DynamicTopicRequest;
import com.ytjj.qmyx.mall.model.response.DynamicTopicResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 *
 * 
 * @description:测评话题相关
 */
public interface DynamicTopicService {

    /**
    * 根据Id获得话题排行列表
     * @Params: topNum top几
    * @returns: com.ytjj.common.api.CommonPage
    * 
    */
    List<DynamicTopicResponse> getDynamicByIds();

    /**
    * 根据话题获得测评文章
    * @param dynamicTopicRequest:
    * @returns: com.ytjj.common.api.CommonPage
    * 
    */
    CommonPage getDynamicsByTopic(DynamicTopicRequest dynamicTopicRequest);

    /**
     * 根据话题Id获得话题及Pv信息
     * @returns: com.ytjj.common.api.CommonPage
     * 
     */
    Map<String,Object> getTopicInfoPvById(Integer id);

}
